import { base } from '@/config'
import http from '@/utils/request'

// 短信群发
const massApi = {
  // 短信群发列表
  getList: params => {
    return http.get(`${base.message}/mass/getList`, params)
  },
  // 统计
  smsSendStatistics: () => {
    return http.get(`${base.message}/mass/statistics`)
  },
  // 群发短信
  massTexting: params => {
    return http.postJson(`${base.message}/mass/massTexting`, params)
  },
  // 短信群发明细列表
  getDetailList: params => {
    return http.get(`${base.message}/mass/getDetailList`, params)
  },
  // 统计群发明细
  statisticsDetail: id => {
    return http.get(`${base.message}/mass/statisticsDetail/${id}`)
  },
  // 获取短信模板选择列表
  selectList: () => {
    return http.get(`${base.message}/template/selectList`)
  }
}

export default massApi
